\documentclass[tikz,border=2mm]{standalone}
\usepackage{array}
\usepackage[UTF8]{ctex}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\usepackage{tikz-cd}
\usepackage{tikz,graphicx,subfig,caption} % Required for drawing custom shapes
\usetikzlibrary{fit,matrix,chains,arrows,shapes,positioning,arrows.meta,chains,shadows,shapes.callouts,decorations.text,shapes.symbols,shapes.misc, positioning,decorations.pathreplacing,calc,backgrounds}
\begin{document}
	\begin{tikzpicture}[>=latex,every node/.style={anchor=south west,,inner sep=0,fill=white}]
		
		%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\node[drop shadow,fill=yellow!10] at (0,0) (SYNBL){
			\begin{tabular}{|C{2em}|C{2em}|C{2em}|C{2em}|C{2em}|}
				\hline 
				&  &  &  &\\ \hline
				&  &  &  &\\ \hline
				&  &  &  &\\ \hline
				&  &  &  &\\ \hline
			\end{tabular}
		};
		%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\node (a1) at ([xshift=-7em,yshift=0.2em]SYNBL.north){a};
		\node (a2) at ([xshift=-4em,yshift=0.2em]SYNBL.north){...};
		\node (a3) at ([xshift=3em,yshift=0.2em]SYNBL.north){Z};
		\node (a4) at ([xshift=6em,yshift=0.2em]SYNBL.north){\#};
		\node (a5) [align=center]at ([xshift=-1em,yshift=0.5em]SYNBL.west){:};
		\node (a6) [align=center]at ([xshift=-1em,yshift=0.2em]SYNBL.west){.};
		%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\node[anchor=north,fill=white,draw,thick,align=center,inner sep=0.2em] (s3) at ([xshift=1em,yshift=3em]SYNBL.north) {终结符+非终结符+\#};
		\node[anchor=north,fill=white,draw,thick,align=center,text width =1em,inner sep=0.2em] (s3) at ([xshift=-3.5em,yshift=6em]SYNBL.west) {终结符+非终结符+ \#};
		\draw[decorate,decoration={brace,raise=8pt,amplitude=5pt}] ([xshift=-7em,yshift=0em]SYNBL.north) --([xshift=7em,yshift=0em]SYNBL.north);
		\draw[decorate,decoration={brace,raise=8pt,amplitude=5pt,mirror}] ([xshift=-1em,yshift=3em]SYNBL.west) --([xshift=-1em,yshift=-3em]SYNBL.west);
		%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\begin{pgfonlayer}{background}
			\node [fill=yellow!10,fit=(SYNBL) (a1) (a2) (a3) (a4) (a5) (a6)] {};
		\end{pgfonlayer}
	\end{tikzpicture}
\end{document}
